<?php
	 session_start();
	ini_set("include_path", ".:../:./includes:../includes");

	extract($_REQUEST);
	require_once("includes/constants.php");
	require_once("includes/database.php");
		
	
	if (deleteShippingOption($_SESSION[SHIPPING][$selectedShippingOption]['ds_service_id']) != 0) {
		$confirmationMessage = $_SESSION[SHIPPING][$selectedShippingOption]['ds_service_name'] . " has been removed." ;
		$_SESSION[SHIPPING] =getAllShippingOptions(); 
		header( 'Location: confirmationPage.php?' . "confirmationMessage=" .$confirmationMessage) ;
	}
	else {
		$errorMessage = "An error occured while trying to remove $_SESSION[SHIPPING][$selectedShippingOption]['ds_service_name'].";
		header( 'Location: errorPage.php?' . "errorMessage=" . $errorMessage ) ;
	}	
	;

?>
